<template>
  <div id="app">
    <router-view />
  </div>
</template>
<script>
export default {
  async created() {
    const token = localStorage.token
    if (token) {
      const { data: res } = await this.$http.get('/api/employees/userinfo')
      this.$store.commit('initUserInfo', res)
    }
  },
}
</script>
<style lang="less"></style>
